package com.random.fox.whatspay.ui;

import android.app.Activity;
import android.support.v4.app.Fragment;
import android.view.View;

/**
 * Created by 渠 on 2014/11/8.
 */
public abstract class BaseFragment extends Fragment{
    protected String TAG = ((Object)this).getClass().getSimpleName();
    protected MainAty mainAty;
    protected View host;

    @Override
    public void onAttach(Activity activity) {
        mainAty = (MainAty) activity;
        super.onAttach(activity);
    }


    abstract void initView();

    abstract void initData();

    protected View findViewById(int id){
        return host.findViewById(id);
    }
}
